<template>
  <div>
    <group label-width="4em" label-margin-right="1em" label-align="left">
        <div>微信登陆</div>
    </group>
  </div>
</template>

<script>
import { XInput, Group, XButton, Cell } from "vux";

export default {
  name: "login",
  components: {
    XInput,
    XButton,
    Group,
    Cell
  },
  created() {
    if (process.env.NODE_ENV === "production") {
      window.location.href = "http://weixin.winnerwly.top/demo.php";
    }
    this.$router.push({
      path: "/redirect",
      query: {
        nickname: "汪留印",
        openid: "ofH7q1Jfz-AIfvW6ksGnAHvNNnU0",
        sex: 1,
        province: "安徽",
        city: "安庆",
        country: "中国",
        headimgurl:
          "http://thirdwx.qlogo.cn/mmopen/vi_32/DYAIOgq83eq8tsssLibop5OYum8DWtQ5DAIr2sPUSQVGk8dXXW1d4OLqXn1wp5UEZXfpzndvAgiclkdujFpvdic6g/132"
      }
    });
  },
  data() {
    return {};
  },
  methods: {}
};
</script>
<style scoped>
.red {
  color: red;
}
.green {
  color: green;
}
</style>
